package com.ruoyi.system.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.PropertyChangeMapper;
import com.ruoyi.system.domain.PropertyChange;
import com.ruoyi.system.service.IPropertyChangeService;

/**
 * 资产变更情况Service业务层处理
 *
 * @author kite
 * @date 2025-03-27
 */
@Service
public class PropertyChangeServiceImpl implements IPropertyChangeService {
    @Autowired
    private PropertyChangeMapper propertyChangeMapper;

    /**
     * 查询资产变更情况
     *
     * @param id 资产变更情况主键
     * @return 资产变更情况
     */
    @Override
    public PropertyChange selectPropertyChangeById(Long id) {
        return propertyChangeMapper.selectPropertyChangeById(id);
    }

    /**
     * 查询资产变更情况列表
     *
     * @param propertyChange 资产变更情况
     * @return 资产变更情况
     */
    @Override
    public List<PropertyChange> selectPropertyChangeList(PropertyChange propertyChange) {
        return propertyChangeMapper.selectPropertyChangeList(propertyChange);
    }

    /**
     * 新增资产变更情况
     *
     * @param propertyChange 资产变更情况
     * @return 结果
     */
    @Override
    public int insertPropertyChange(PropertyChange propertyChange) {
        return propertyChangeMapper.insertPropertyChange(propertyChange);
    }

    /**
     * 修改资产变更情况
     *
     * @param propertyChange 资产变更情况
     * @return 结果
     */
    @Override
    public int updatePropertyChange(PropertyChange propertyChange) {
        return propertyChangeMapper.updatePropertyChange(propertyChange);
    }

    /**
     * 批量删除资产变更情况
     *
     * @param ids 需要删除的资产变更情况主键
     * @return 结果
     */
    @Override
    public int deletePropertyChangeByIds(Long[] ids) {
        return propertyChangeMapper.deletePropertyChangeByIds(ids);
    }

    /**
     * 删除资产变更情况信息
     *
     * @param id 资产变更情况主键
     * @return 结果
     */
    @Override
    public int deletePropertyChangeById(Long id) {
        return propertyChangeMapper.deletePropertyChangeById(id);
    }

    @Override
    public List<Map<String, Object>> selectByNumberAndType(String instrumentNumber, String type) {
        return propertyChangeMapper.selectByNumberAndType(instrumentNumber, type);
    }

    @Override
    public int selectCountByNumberAndType(String instrumentNumber, String type) {
        return propertyChangeMapper.selectCountByNumberAndType(instrumentNumber, type);
    }

}
